namespace Resharper.Abstractions.CodeDom.Statements.ForEachStatements
{
  using JetBrains.Annotations;
  using JetBrains.ReSharper.Psi.CSharp.Tree;

  /// <summary>Defines the <see cref="ForEachStatement"/> class.</summary>
  public class ForEachStatement : Statement
  {
    #region Constructors and Destructors

    /// <summary>Initializes a new instance of the <see cref="ForEachStatement"/> class.</summary>
    /// <param name="statement">The statement.</param>
    internal ForEachStatement([NotNull] IForeachStatement statement) : base(statement)
    {
    }

    #endregion

    #region Properties

    /// <summary>
    /// Gets the internal for statement.
    /// </summary>
    [NotNull]
    internal IForeachStatement InternalForStatement
    {
      get
      {
        return (IForeachStatement)this.InternalStatement;
      }
    }

    #endregion
  }
}